class LinkedListExample {
    private Node head;
    private static class Node{
        public long value;
        public Node next;
        public Node(long value){
            this.value=value;
            next=null;
        }
    }

    public void createLinkedList(){
        Node node = new Node(111);
        Node node1 = new Node(333);
        Node node2 = new Node(9999);
        Node node3 = new Node(66);
        Node node4 = new Node(112);
        Node node5 = new Node(213);
        Node node6 = new Node(447);
        Node node7 = new Node(168);
        Node node8 = new Node(1);
        Node node9 = new Node(4371);
        Node node10 = new Node(8787);
        Node node11 = new Node(20240310029L);

        head = node;
        node.next=node1;
        node1.next=node2;
        node2.next=node3;
        node3.next=node4;
        node4.next=node5;
        node5.next=node6;
        node6.next=node7;
        node7.next=node8;
        node8.next=node9;
        node9.next=node10;
        node10.next=node11;
    }
    public void display(){
        Node tmp = this.head;
        System.out.print("[");
        while (tmp!=null){
            if (tmp.next==null)System.out.print(tmp.value);
            else System.out.print(tmp.value+",");
            tmp=tmp.next;
        }
        System.out.println("]");
    }
    public static void main(String[] args) {
        LinkedListExample list = new LinkedListExample();
        list.createLinkedList();
        list.display();
    }
}